package com.qf.hellospring.service.impl;

import com.qf.hellospring.dao.UserDao;
import com.qf.hellospring.service.UserService;

/**
 * @author 钻五大人
 * @date 2022/4/25 14:45
 */
public class UserServiceImpl implements UserService {

    // 声明属性 提供set/get方法
    private UserDao userDao;

    public UserDao getUserDao() {
        return userDao;
    }

    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }

    @Override
    public int deleteById(Integer id) {
        System.out.println("业务层删除用户");
        return userDao.deleteById(id);
    }
}
